define(['handlebars','text!js/signature/formList.hbs'],function(Handlebars,formSource) {
	var $ = Dom7;
	
	
	function render(params) {
		
		var template = Handlebars.compile(formSource);
		var _content = template(params.model);
		
		var _el = $('#formList-page ul')
		_el.html(_content);
		bindEvents(params.bindings);
	}

	function bindEvents(bindings) {
		for (var i in bindings) {
			$(bindings[i].element).on(bindings[i].event, bindings[i].handler);
		}
	}

	return {
		render: render
	}
});